import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store'
import md5 from 'js-md5';
import toast from 'components/common/toast'
import FastClick from 'fastclick'
import VueLazyload from 'vue-lazyload'

import { prefix } from './common/utils'
// 安装toast插件
Vue.use(toast)
// 使用fastclick解决300ms点击延迟
FastClick.attach(document.body);
// 使用懒加载插件
Vue.use(VueLazyload, {
  loading: require('./assets/img/common/loading.gif')
})

Vue.prototype.$md5 = md5;
Vue.prototype.prefix = prefix;

Vue.config.productionTip = false
Vue.prototype.$bus = new Vue()
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
